import { createApp } from "vue";
import { createPinia } from "pinia";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/reset.css";
import App from "./App.vue";
import router from "./router";
// import "./assets/main.css";
import VXETable from "vxe-table";
import "vxe-table/lib/style.css";
import VueCookies from "vue3-cookies";
function useTable(app: any) {
  app.use(VXETable);
}
// createApp(App).use(useTable).mount('#app')
const app = createApp(App);
// app.use(VueCookies);
// app.config.globalProperties.$cookies = VueCookies;

app.use(createPinia());

app.use(router);
//error1:注意引用顺序
//https://blog.csdn.net/apple_51927114/article/details/135225058
app.use(Antd).use(useTable).mount("#app");
